package com.my.springframework.beans.factory.config;

import com.my.springframework.beans.factory.HierarchicalBeanFactory;

/**
 * Configuration interface to be implemented by most bean factories. Provides
 * facilities to configure a bean factory, in addition to the bean factory
 * client methods in the {@link com/my/springframework/beans/factory/BeanFactory.java}
 * interface.
 *
 * @author sk
 * @description
 * @since 2021-11-24
 **/
public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRegistry {

    String SCOPE_SINGLETON = "singleton";

    String SCOPE_PROTOTYPE = "prototype";

    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单利对象
     */
    void destroySingletons();
}
